package com.jlu155.CourseManager.repository;

import java.util.List;

import com.jlu155.CourseManager.entity.TeachClass;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.FetchType;

public interface TeachClassRepository {

    // 插入教师课程信息
    public int insertTeachClass(TeachClass teachClass);

    // 按课程ID查询教师课程信息
    TeachClass findTeachClassById(Integer tc_id);

    // 按教师ID查询教师课程信息
    List<TeachClass> findTeachClassByTeacherId(Integer teacher_id);

    // 按课程ID查询教师课程信息
    List<TeachClass> findTeachClassByCourseId(Integer course_id);
    // 删除教师课程信息
    public boolean deleteTeachClass(Integer tc_id);

    // 查询所有教师课程信息
    public List<TeachClass> findAllTeachClass();

    // 更新教师课程信息
    public boolean updateTeachClass(TeachClass teachClass);


}
